﻿using System;
using System.Collections.Generic;
using DevExpress.XtraEditors;

namespace DevTools.Romanizer.Forms
{
    public partial class DuplicatedItemListForm : XtraForm
    {
        public bool UseSystemData { get; set; }

        public DuplicatedItemListForm()
        {
            InitializeComponent();
        }

        public DuplicatedItemListForm(List<KeyValuePair<char, string>> items)
        {
            InitializeComponent();

            foreach (var item in items)
                lbcList.Items.Add(string.Format("{0}\t{1}", item.Key, item.Value));
        }

        private void btnYes_Click(object sender, EventArgs e)
        {
            UseSystemData = false;

            Close();
        }

        private void btnNo_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}